package com.kancy.demo.streamplus.channel;

import com.kancy.streamplus.channel.AutoSubscribeChannel;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * BusinessChannel
 *
 * @author kancy
 * @date 2020/3/22 19:38
 */
public interface BusinessChannel extends AutoSubscribeChannel {
    String OUTPUT = "output";
    String INPUT = "input";

    @Output(OUTPUT)
    MessageChannel output();

    @Override
    @Input(INPUT)
    SubscribableChannel input();
}
